#include"comm.hpp"

int main()
{
    key_t key=getkey();
    int shmid=creatShm(key,gsize);
    char* shmstart=attchShm(shmid);
    std::string str="i am process A";
    char c='A';
    while(c<='Z')
    {
        shmstart[c-'A']=c;
        c++;
        shmstart[c-'A']='\0';
        sleep(1);
    }
   


    detachShm(shmstart);
    delShm(shmid);

    return 0;


}